﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第六十三题
//BC65 箭形图案
//https://www.nowcoder.com/practice/a6d1081e0c9a42f19e42ed6cd91556c1?tpId=107&tqId=33346&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D2%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int n = 0;
    while (scanf("%d", &n) != EOF) {
        //前n行
        for (int i = 1, j = n; i < n + 1; i++, j--) {
            //打印空格
            for (int k = 0; k < 2 * j; k++) {
                printf(" ");
            }
            //打印*
            for (int j = 0; j < i; j++) {
                printf("*");
            }
            printf("\n");
        }
        //后n+1行
        for (int i = n + 1, l = 0; i > 0; i--, l++) {
            //打印空格
            for (int k = 0; k < 2 * l; k++) {
                printf(" ");
            }
            //打印*
            for (int j = i; j > 0; j--) {
                printf("*");
            }
            printf("\n");
        }
    }
    return 0;
}